﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace pufflesweb
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            PModel.User mysuer = new PModel.User();

            mysuer = (PModel.User)PF.SessionHelper.GetSession("user");

            if (mysuer != null)
            {
                this.username.Text = mysuer.Username;
            }
            else
            {
                PF.JsHelper.AlertAndRedirect("尚未登录！","login.aspx");
            }
            
        }
    }
}